.map-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding: 0;
  margin: 0;
}

.main-content {
  display: flex;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.controls {
  width: 200px;
  padding: 10px;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

button.active {
  background-color: #f44336;
}

button.active:hover {
  background-color: #d32f2f;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.map-button {
  background-color: #2196F3;
}

.map-button:hover {
  background-color: #0b7dda;
}

.map-button.active {
  background-color: #ff9800;
}

.map-button.active:hover {
  background-color: #e68900;
}

.map-button.active[data-edit="true"] {
  background-color: #007bff;
  color: white;
}

.map-button.active[data-edit="true"]:hover {
  background-color: #0056b3;
}

.stop-button {
  background-color: #f44336;
}

.stop-button:hover {
  background-color: #d32f2f;
}

.geoserver-button {
  background-color: #9c27b0;
}

.geoserver-button:hover {
  background-color: #7b1fa2;
}

.geoserver-button.active {
  background-color: #ff5722;
}

.geoserver-button.active:hover {
  background-color: #e64a19;
}

.delete-button {
  background-color: #f44336;
}

.delete-button:hover {
  background-color: #d32f2f;
}

.delete-button.active {
  background-color: #ff5722;
}

.delete-button.active:hover {
  background-color: #e64a19;
}

.delete-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.map {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.query-button {
  background-color: #00bcd4;
}

.query-button:hover {
  background-color: #00acc1;
}

.query-button.active {
  background-color: #0097a7;
}

.query-button.active:hover {
  background-color: #00838f;
}

.query-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: 400px;
  max-height: 300px;
  overflow-y: auto;
}

.query-popup:after, .query-popup:before {
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.query-popup:after {
  border-top-color: white;
  border-width: 10px;
  left: 48px;
  margin-left: -10px;
}

.query-popup:before {
  border-top-color: #cccccc;
  border-width: 11px;
  left: 48px;
  margin-left: -11px;
}

.query-popup-closer {
  text-decoration: none;
  position: absolute;
  top: 2px;
  right: 8px;
}

.query-popup-closer:after {
  content: "✖";
}

.query-popup-content {
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
}